<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>待办任务列表</title>
    <%@ include file="/WEB-INF/jsp/common/common.jsp" %>
    <link href="${prcs}/css/def/ztree/metro.css" rel="stylesheet">
    <link href="${prcs}/css/def/bootstrap/ace/ace-part2.min.css" rel="stylesheet">
    <link href="${prcs}/css/def/bootstrap/ace/ace.css" rel="stylesheet">
    <link href="${prcs}/css/def/frm/common/common.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/resource/js/jquery/plugin/handlebars-v3.0.1.js"></script>
	<script src="${pageContext.request.contextPath}/resource/js/jquery/plugin/My97DatePicker/WdatePicker.js"></script>
	<script src="${pageContext.request.contextPath}/resource/js/frm/workflow/tasklist/task-todo.js"></script>
</head>
<body>
	<div class="head-title">
		<span>待办列表demo</span>
	</div>
	<div class="container-fluid" id="searchContent">
		<div class="row">
			<form class="form-inline" method="post" id="sysDemoForm">
				<div class="input-group col-md-3 free-3">
					<span class="input-group-addon">待办标题:</span>
					<input type="text" class="form-control" id="processTitle" name="processTitle" size="30px" />
				</div>
				<div class= "input-group col-md-3 free-3">
					 <span class="input-group-addon">审批开始时间:</span> 
					 <input type="text" name="startDate" id="startDate" size="30px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="form-control" readonly="readonly"/>
				</div>
				<div class="input-group col-md-3 free-3">
					<span class="input-group-addon">审批结束时间:</span> 
				     <input type="text" name="endDate" id="endDate" size="30px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="form-control" readonly="readonly"/>
				</div>			
				<div class="input-group col-md-3 free-3">
					<span class="input-group-addon">环节名称:</span>
					<input type="text" class="form-control" id="linkName" name="linkName" size="30px"/>
				</div>			
				<div class="div-button col-md-pull-3">
					<%-- <shiro:hasPermission name="sysDemoController/searchData4Page"> --%>
					<a type="button" class="btn btn-info" onclick="serarch();"><i
						class="ace-icon glyphicon glyphicon-search"></i>查询</a>
					<a type="button" class="btn btn-info" onclick="resetCondition();"><i
						class="ace-icon glyphicon glyphicon-search"></i>重置</a>
				<%-- </shiro:hasPermission> --%>
				</div>			   
			</form>
		</div>
		<div style="display:none;">
			<!-- 当前登录人岗位ID -->
			<input type="hidden" id="currentId" name="currentId" value="${currentId}" />
			<form action="taskToDoDetail" method="post">
				<input type="text" id="taskId" name="taskId"/>
				<input type="text" id="taskDefinitionKey" name="taskDefinitionKey"/>
				<input type="text" id="name" name="name"/>
				<input type="text" id="processInstanceId" name="processInstanceId"/>
				<input type="text" id="title" name="title"/>
				<input type="text" id="processDefinitionId" name="processDefinitionId"/>
				<input type="text" id="processDefinitionKey" name="processDefinitionKey"/>
				<input type="text" id="executionId" name="executionId"/>
				<input type="text" id="assigneeId" name="assigneeId"/>
				
				<input id="forwardButton" name="forwardButton" type="submit"/>
			</form>
		</div>
 		<hr/>
		<div class="row">
			<table id="searchTable" class="display table table-bordered" cellspacing="0" width="100%">
			</table>
		</div>
	</div>
</body>
</html>